import Mock from 'mockjs'
import homeApi from './mockServerData/home'

import userApi from './mockServerData/user'
//定义mock请求拦截
Mock.mock("http://localhost:8081/home/getData",homeApi.getStatisticalData)

//用户列表
Mock.mock('http://localhost:8081/user/add', 'post', userApi.createUser)
Mock.mock('http://localhost:8081/user/edit', 'post', userApi.updateUser)
Mock.mock('http://localhost:8081/user/del', 'post', userApi.deleteUser)
Mock.mock(RegExp('http://localhost:8081/user/getUser' + ".*"), "get", userApi.getUserList)